//
//  MKLabel.h
//  YYTextS
//
//  Created by Burn on 2019/9/10.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, MKTextAlignment) {
    MKTextAlignmentNormal,
    MKTextAlignmentCenter
    
};


@interface MKLabel : UIView



@property (nonatomic, strong) UIFont *font;
@property (nonatomic, assign) NSInteger numberOfLines;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, assign) CGFloat lineSpace;
@property (nonatomic, assign) CGFloat wordSpace;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, assign) MKTextAlignment baseLine;
@property(assign,nonatomic) UIEdgeInsets contentInsets;

-(CGFloat)getTextWidth;

@end

NS_ASSUME_NONNULL_END
